import ptio
import pickle_io
import mndio

by_protocol = {'ptio': ptio}

def dump(hc, path):
    if path[-3:] == 'mnd':
        mndio.dump(hc, path)
    else:
        ptio.dump(hc, path)

def load(path, names=[]):
    return ptio.load(path, names)


def copy(h):
    return ptio.copy(h)

